package com.eqxiu.ieditor.weixin.dao;

import com.eqxiu.ieditor.weixin.dto.KeywordDto;
import com.eqxiu.ieditor.weixin.model.WeixinReply;
import com.eqxiu.ieditor.weixin.model.WeixinReplyExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WeixinReplyDao {
    long countByExample(WeixinReplyExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(WeixinReply record);

    int insertSelective(WeixinReply record);

    List<WeixinReply> selectByExample(WeixinReplyExample example);

    WeixinReply selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") WeixinReply record, @Param("example") WeixinReplyExample example);

    int updateByExample(@Param("record") WeixinReply record, @Param("example") WeixinReplyExample example);

    int updateByPrimaryKeySelective(WeixinReply record);

    int updateByPrimaryKey(WeixinReply record);

    List<KeywordDto> findByParam(KeywordDto dto);

    Integer countByParam(KeywordDto dto);

    Integer findByMatchContent(@Param("matchContent") String matchContent);

    Integer checkMatchContentExcludeId(@Param("matchContent") String matchContent,@Param("id")  Integer id);

    Integer save(WeixinReply reply);

    Integer update(KeywordDto reply);
}